<?php

/*
$log = 0;
if (!$log = FOpen("log.txt", "a"))
{
  echo "Error: log could not be opened!<br>";
}
*/
$spojeni = MySQL_Connect("localhost", "studiowww.cz", "erheepfr");

if (!$spojeni) {
  echo "error_connection";
  echo MySQL_ErrNo();
  exit;
}
else {
  if (!@MySQL_Select_DB("studiowww_cz", $spojeni)) {
    echo "error_selection";
    echo MySQL_ErrNo();
    exit;
  }
}

?>
